home *** CD-ROM | disk | FTP | other *** search
- /*
- File: Outbound.r
-
- Copyright (c) 1990-1, Thomas Knoll.
- Copyright (c) 1992-6, Adobe Systems Incorporated.
- All rights reserved.
-
- Rez source file for Outbound export example.
- */
-
- /********************************************************************************/
- /* Defines required for include files */
-
- #define plugInName "Outbound"
- #define VersionString "4.0"
-
- /********************************************************************************/
-
- #if Macintosh
- #include "Types.r"
- #include "SysTypes.r"
- #include "PIGeneral.r"
- #include "PIUtilities.r"
- #include "DialogUtilities.r"
- #endif
-
- #if MSWindows
- #include "PIGeneral.h"
- #include "PIUtilities.r"
- #include "WinDialogUtils.r"
- #endif
-
- #include "PIActions.h"
-
- /********************************************************************************/
-
- #define plugInComment "outbound example export plug-in"
- #define vendorName "AdobeSDK"
-
- #define ourSuiteID 'sdK5'
- #define ourClassID 'outB'
- #define ourEventID typeNull // must be this
-
- /********************************************************************************/
-
- resource 'PiPL' (ResourceID, purgeable)
- {
- {
- Kind { Export },
- Name { plugInName "..." },
- Version { (latestExportVersion << 16) | latestExportSubVersion },
-
- #if Macintosh
- Code68K { Export, $$ID },
- CodePowerPC { 0, 0, "" },
- #endif
-
- #if MSWindows
- CodeWin32X86 { "ENTRYPOINT" },
- #endif
-
- HasTerminology { ourClassID, ourEventID, ResourceID, "" },
- /* class ID, event ID, aete ID, uniqueString */
-
- SupportedModes
- {
- noBitmap, doesSupportGrayScale,
- doesSupportIndexedColor, doesSupportRGBColor,
- doesSupportCMYKColor, doesSupportHSLColor,
- doesSupportHSBColor, doesSupportMultichannel,
- doesSupportDuotone, doesSupportLABColor
- },
-
- EnableInfo { "in (PSHOP_ImageMode, GrayScaleMode, IndexedColorMode,"
- "RGBMode, CMYKMode, HSLMode, HSBMode, MultichannelMode,"
- "DuotoneMode, LABMode)" }
-
- }
- };
-
- resource 'PiMI' (ResourceID, purgeable)
- {
- latestExportVersion,
- latestExportSubVersion,
- 0,
- supportsGrayScale +
- supportsIndexedColor +
- supportsRGBColor +
- supportsCMYKColor +
- supportsHSLColor +
- supportsHSBColor +
- supportsMultichannel +
- supportsDuotone +
- supportsLABColor,
- ' ', /* No required host */
- {},
- };
-
- resource 'STR#' (ResourceID, purgeable)
- {
- {
- "Outbound export to file:"
- }
- };
-
- /* About resources */
-
- resource StringResource (AboutID, "About Text", purgeable)
- {
- plugInName "\n\n"
- "Version " VersionString " "
- "Release " ReleaseString "\n"
- "Copyright ⌐ 1992-6, Adobe Systems Incorporated.\n"
- "All rights reserved.\n\n"
- "An example plug-in export module for Adobe Photoshop¿."
- };
-
- /* scripting dictionary resource */
-
- resource 'aete' (ResourceID, purgeable)
- {
- 1, 0, english, roman, /* aete version and language specifiers */
- {
- vendorName, /* vendor suite name */
- "Adobe example plug-ins", /* optional description */
- ourSuiteID, /* suite ID */
- 1, /* suite code, must be 1 */
- 1, /* suite level, must be 1 */
- {}, /* structure for filters */
- { /* non-filter plug-in class here */
- vendorName " outbound", /* unique class name */
- ourClassID, /* class ID, must be unique or Suite ID */
- "outbound plug-in", /* optional description */
- { /* define inheritance */
- "<Inheritance>", /* must be exactly this */
- keyInherits, /* must be keyInherits */
- classExport, /* parent: Format, Import, Export */
- "parent class export", /* optional description */
- flagsSingleProperty, /* if properties, list below */
-
- "in", /* our path */
- keyIn, /* common key */
- typePlatformFilePath, /* correct path for platform */
- "file path", /* optional description */
- flagsSingleProperty
-
- /* no more properties */
- },
- {}, /* elements (not supported) */
- /* class descriptions */
- },
- {}, /* comparison ops (not supported) */
- {} /* any enumerations */
- }
- };
-